<div id="login_panel">
<!--
<?php
$username = $this->formText('username', '', array('style' => 'width: 150px'));
$password = $this->formText('password', '', array('style' => 'width: 150px'));
$btnButton = $this->formSubmit('submit', 'Login');
?>
<h2>loginAction</h2>
<form id="appForm" action="" method="POST" enctype="multipart/form-data">
    <label>Username:</label><br />
    <?php echo $username; ?><br />
    <label>Password:</label><br /> 
    <?php echo $password; ?>
    <?php echo $btnButton; ?>

</form>        
-->        
        <?php if($this->error_messages){ ?>
			<div class="notification error" >
				<span class="strong">Error:</span>
					<?php echo $this->error_messages; ?>.
				<span class="close" title="Dismiss"></span>
			</div>
		<?php }?>
		<?php if($this->warning_messages){ ?>
			<div class="notification warning" >
				<span class="strong">Warning:</span>
					<?php echo $this->warning_messages; ?>.
				<span class="close" title="Dismiss"></span>
			</div>
		<?php }?>
		<div id="header">
			<!--<img src="/images/sys/logo.jpg">-->
		</div>
		<div>
			<form method="post">
				<div id="login_button_wrapper">
					<input type="image" id="login_button" src="/images/sys/login-icon.png" name="login"/>
					<label for="login_button">
						<span id="login_text">Gmail account login</span>
					</label>
				</div>
			</form>
			
			<script type="text/javascript">
				$(document).ready(function(){
					$("#login_button").click(function(){
						window.location.href = "/admin/index/login?login=1"; 
						return false;
					});
				});	
			</script>
						
		</div>
</div>
<script type="text/javascript">
	// Notification Animations
	$(function () { 
		$('.notification').hide().append('<span class="close" title="Dismiss"></span>').fadeIn('slow');
		$('.notification .close').hover(
		function() { $(this).addClass('hover'); },
		function() { $(this).removeClass('hover'); }
	);
	$('.notification .close').click(function() {
		$(this).parent().fadeOut('slow', function() { $(this).remove(); });
	}); 

	});
</script>